package com.league.zjxn.entity

import com.module.lemlin.http.HttpResponseData
import java.io.Serializable

data class HomeDataResponse(
    val data: HomeData
) : HttpResponseData()

data class HomeData(
    val banner: MutableList<BannerData> = mutableListOf(),
    val news: MutableList<Trends> = mutableListOf(),
    val alliance_introduction: MutableList<IntrosData> = mutableListOf(),
    val about_us: MutableList<AboutData> = mutableListOf(),
    val alliance_data: LeagueData
)

/**
 * 首页-轮播数据
 * */
data class BannerData(
    val id: String,
    val image: String,
    val label: String
)

data class Trends(
    val id: Int,
    val name: String,
    val data: MutableList<TrendData> = mutableListOf()
)

/**
 * 首页-全部动态数据
 * */
data class TrendData(
//    val content: String,
    val cover: String?,
    val create_time: String,
    val id: String,
    val title: String,
    val type: String
) : Serializable


data class TrendData1Response(
    val data: PageData<TrendData1>
) : HttpResponseData()

data class TrendData1(
    val cover: String,
    val day: String,
    val desc: String,
    val id: String,
    val title: String,
    val type: String,
    val years: String
) : Serializable

/**
 * 首页-联盟介绍
 * */
data class IntrosData(
    val id: String,
    val name: String
)

/**
 * 首页-关于我们
 * */
data class AboutData(
    val id: String,
    val name: String
)

/**
 * 首页-联盟数据
 * */
data class LeagueData(
    val alliance_brief_count: String,
    val alliance_member_count: String,
    val alliance_news_count: String,
    val alliance_project_count: String,
    val name: String,
    val version: String
)

data class TrendDetailsResponse(
    val data: TrendDetails
) : HttpResponseData()

data class TrendDetails(
    val author: String,
    val content: String,
    val cover: String,
    val create_time: String,
    val id: String,
    val title: String,
    val type: String,
    val url: String
)

data class HomeSearchResponse(
    val data: PageData<HomeSearch>
) : HttpResponseData()

data class HomeSearch(
    val create_time: String,
    val desc: String,
    val id: String,
    val key: String,
    val title: String,
    val type: String
):Serializable